package lab02.test22;

public class Test22 {
    public static void main(String[] args) {
        String result = "Hello, 2017, New";
        StringBuffer stringBuffer = new StringBuffer();
        StringBuilder stringBuilder = new StringBuilder();
        //
        for(int i = 0;i < result.length();i++){
            char temp = result.charAt(i);
            if(temp >= 'A' && temp <= 'Z'){
                stringBuffer.append((char)(temp + 32));
               // System.out.print((char)(temp + 32));
            }else if(temp >= 'a' && temp <= 'z'){
                //System.out.print(temp);
                stringBuffer.append(temp);
            }else if(temp >= '0' && temp <= '9'){
                //System.out.print('0');
                stringBuffer.append('0');
            }else{
                //System.out.print("#");
                stringBuffer.append('#');
            }

        }
            System.out.println(stringBuffer.toString());

    }
}
